.class public Les/e40;
.super Ljava/lang/Object;
.source "RecycleFileSystem.java"


# static fields
.field private static a:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Les/e40;->a:Ljava/util/Set;

    return-void
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    new-instance p0, Ljava/util/ArrayList;

    invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    invoke-static {}, Les/e40;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    return-object p0

    .line 3
    :cond_0
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    .line 4
    invoke-static {}, Lcom/estrongs/android/util/h0;->q()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 5
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 6
    invoke-interface {v0, v1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z

    .line 7
    :cond_1
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v1

    .line 8
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    if-eqz v1, :cond_3

    .line 9
    invoke-virtual {v1}, Les/s80;->z()Z

    move-result v3

    if-eqz v3, :cond_3

    const/4 p0, 0x0

    return-object p0

    .line 10
    :cond_3
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/.estrongs/recycle/"

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 11
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 12
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v2, 0x1

    .line 13
    invoke-static {v3, p1, v1, p0, v2}, Les/e40;->a(Ljava/io/File;Lcom/estrongs/fs/h;Les/s80;Ljava/util/List;Z)V

    goto :goto_0

    :cond_4
    return-object p0
.end method

.method public static a(J)V
    .locals 3

    .line 65
    sget-object v0, Les/e40;->a:Ljava/util/Set;

    monitor-enter v0

    .line 66
    :try_start_0
    sget-object v1, Les/e40;->a:Ljava/util/Set;

    invoke-interface {v1}, Ljava/util/Set;->size()I

    move-result v1

    if-nez v1, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    .line 67
    :goto_0
    sget-object v2, Les/e40;->a:Ljava/util/Set;

    invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p0

    invoke-interface {v2, p0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 68
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v1, :cond_1

    .line 69
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p0

    if-eqz p0, :cond_1

    .line 70
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->E0()V

    :cond_1
    return-void

    :catchall_0
    move-exception p0

    .line 71
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p0
.end method

.method public static a(Lcom/estrongs/android/pop/view/FileExplorerActivity;Ljava/util/List;Les/z80;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/android/pop/view/FileExplorerActivity;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;",
            "Les/z80;",
            ")V"
        }
    .end annotation

    .line 57
    new-instance v0, Les/l70;

    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v1

    invoke-direct {v0, p0, v1, p1}, Les/l70;-><init>(Landroid/app/Activity;Lcom/estrongs/fs/f;Ljava/util/List;)V

    .line 58
    invoke-virtual {v0, p2}, Les/s80;->a(Les/z80;)V

    const p1, 0x7f11095d

    .line 59
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/s80;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 60
    invoke-virtual {v0, p1}, Les/s80;->c(Z)V

    .line 61
    new-instance p2, Lcom/estrongs/android/ui/dialog/a1;

    const v1, 0x7f1108f3

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p2, p0, v1, v0}, Lcom/estrongs/android/ui/dialog/a1;-><init>(Landroid/app/Activity;Ljava/lang/String;Les/s80;)V

    .line 62
    invoke-virtual {p2, p1}, Lcom/estrongs/android/ui/dialog/a1;->c(Z)Lcom/estrongs/android/ui/dialog/a1;

    .line 63
    invoke-virtual {p2}, Lcom/estrongs/android/ui/dialog/a1;->e()V

    .line 64
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p0

    new-instance p1, Les/e40$b;

    invoke-direct {p1, v0}, Les/e40$b;-><init>(Les/l70;)V

    invoke-virtual {p0, p1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public static a(Les/sp;Lcom/estrongs/android/view/FileGridViewWrapper;)V
    .locals 10

    const/4 v0, 0x0

    if-eqz p1, :cond_8

    .line 35
    invoke-virtual {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->q()I

    move-result v1

    if-nez v1, :cond_0

    goto/16 :goto_4

    .line 36
    :cond_0
    new-instance v3, Ljava/util/LinkedList;

    invoke-direct {v3}, Ljava/util/LinkedList;-><init>()V

    .line 37
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    .line 38
    invoke-static {}, Lcom/estrongs/android/util/h0;->q()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 39
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_1

    .line 40
    invoke-interface {v1, v2}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z

    .line 41
    :cond_1
    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_2
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_7

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 42
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/.estrongs/recycle/"

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 43
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 44
    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v4}, Ljava/io/File;->isDirectory()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 45
    invoke-virtual {v4}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v2

    if-nez v2, :cond_3

    return-void

    :cond_3
    const/4 v4, 0x0

    .line 46
    :goto_0
    array-length v5, v2

    if-ge v4, v5, :cond_2

    .line 47
    aget-object v5, v2, v4

    if-eqz v5, :cond_6

    .line 48
    invoke-virtual {v5}, Ljava/io/File;->isDirectory()Z

    move-result v6

    if-nez v6, :cond_4

    goto :goto_3

    .line 49
    :cond_4
    :try_start_0
    invoke-virtual {v5}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    .line 50
    sget-object v8, Les/e40;->a:Ljava/util/Set;

    monitor-enter v8
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 51
    :try_start_1
    sget-object v9, Les/e40;->a:Ljava/util/Set;

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    invoke-interface {v9, v6}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_5

    const/4 v6, 0x1

    goto :goto_1

    :cond_5
    const/4 v6, 0x0

    .line 52
    :goto_1
    monitor-exit v8

    goto :goto_2

    :catchall_0
    move-exception v6

    monitor-exit v8
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v6
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    const/4 v6, 0x0

    :goto_2
    if-eqz v6, :cond_6

    .line 53
    new-instance v6, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v6, v5}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_6
    :goto_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 54
    :cond_7
    new-instance v5, Les/e40$a;

    invoke-direct {v5}, Les/e40$a;-><init>()V

    const v6, 0x7f110034

    const v0, 0x7f11029b

    .line 55
    invoke-interface {p0, v0}, Les/tp;->getString(I)Ljava/lang/String;

    move-result-object v7

    const/4 v8, 0x1

    move-object v2, p0

    move-object v4, p1

    invoke-static/range {v2 .. v8}, Lcom/estrongs/android/pop/utils/p;->a(Les/sp;Ljava/util/List;Lcom/estrongs/android/view/FileGridViewWrapper;Les/z80;ILjava/lang/String;Z)Z

    return-void

    .line 56
    :cond_8
    :goto_4
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p0

    const p1, 0x7f110939

    invoke-static {p0, p1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return-void
.end method

.method private static a(Ljava/io/File;Lcom/estrongs/fs/h;Les/s80;Ljava/util/List;Z)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/File;",
            "Lcom/estrongs/fs/h;",
            "Les/s80;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;Z)V"
        }
    .end annotation

    .line 14
    invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object p0

    if-nez p0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    const/4 v1, 0x0

    if-eqz p4, :cond_4

    const/4 p4, 0x0

    .line 15
    :goto_0
    array-length v2, p0

    if-ge p4, v2, :cond_4

    .line 16
    aget-object v2, p0, p4

    if-eqz v2, :cond_3

    .line 17
    invoke-virtual {v2}, Ljava/io/File;->isDirectory()Z

    move-result v3

    if-nez v3, :cond_1

    goto :goto_3

    .line 18
    :cond_1
    :try_start_0
    invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    .line 19
    sget-object v4, Les/e40;->a:Ljava/util/Set;

    monitor-enter v4
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 20
    :try_start_1
    sget-object v5, Les/e40;->a:Ljava/util/Set;

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-interface {v5, v2}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    const/4 v2, 0x1

    goto :goto_1

    :cond_2
    const/4 v2, 0x0

    .line 21
    :goto_1
    monitor-exit v4

    goto :goto_2

    :catchall_0
    move-exception v2

    monitor-exit v4
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v2
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    const/4 v2, 0x0

    :goto_2
    if-nez v2, :cond_3

    const/4 v2, 0x0

    .line 22
    aput-object v2, p0, p4

    :cond_3
    :goto_3
    add-int/lit8 p4, p4, 0x1

    goto :goto_0

    .line 23
    :cond_4
    array-length p4, p0

    const/4 v2, 0x0

    :goto_4
    if-ge v2, p4, :cond_d

    aget-object v3, p0, v2

    if-nez v3, :cond_5

    goto :goto_7

    :cond_5
    if-eqz p2, :cond_6

    .line 24
    invoke-virtual {p2}, Les/s80;->z()Z

    move-result v4

    if-eqz v4, :cond_6

    return-void

    .line 25
    :cond_6
    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v4

    if-nez v4, :cond_7

    goto :goto_7

    .line 26
    :cond_7
    invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "es_recycle_content"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_b

    .line 27
    invoke-virtual {v3}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v3

    if-eqz v3, :cond_c

    .line 28
    array-length v4, v3

    const/4 v5, 0x0

    :goto_5
    if-ge v5, v4, :cond_c

    aget-object v6, v3, v5

    if-nez v6, :cond_8

    goto :goto_6

    :cond_8
    if-eqz p2, :cond_9

    .line 29
    invoke-virtual {p2}, Les/s80;->z()Z

    move-result v7

    if-eqz v7, :cond_9

    return-void

    .line 30
    :cond_9
    new-instance v7, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v7, v6}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    .line 31
    invoke-interface {p1, v7}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v8

    if-eqz v8, :cond_a

    invoke-virtual {v6}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    const-string v8, "PCS_DRIVE_Js1a7M5e_9yAcTvFX"

    invoke-virtual {v8, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_a

    .line 32
    invoke-interface {p3, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    if-eqz p2, :cond_a

    const/16 v6, 0xb

    new-array v8, v0, [Ljava/lang/Object;

    aput-object v7, v8, v1

    .line 33
    invoke-virtual {p2, v6, v8}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_a
    :goto_6
    add-int/lit8 v5, v5, 0x1

    goto :goto_5

    .line 34
    :cond_b
    invoke-static {v3, p1, p2, p3, v1}, Les/e40;->a(Ljava/io/File;Lcom/estrongs/fs/h;Les/s80;Ljava/util/List;Z)V

    :cond_c
    :goto_7
    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    :cond_d
    return-void
.end method

.method public static a()Z
    .locals 2

    .line 72
    sget-object v0, Les/e40;->a:Ljava/util/Set;

    monitor-enter v0

    .line 73
    :try_start_0
    sget-object v1, Les/e40;->a:Ljava/util/Set;

    invoke-interface {v1}, Ljava/util/Set;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    monitor-exit v0

    return v1

    :catchall_0
    move-exception v1

    .line 74
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public static b()V
    .locals 1

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 10
    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->E0()V

    :cond_0
    return-void
.end method

.method public static b(J)V
    .locals 3

    .line 1
    sget-object v0, Les/e40;->a:Ljava/util/Set;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Les/e40;->a:Ljava/util/Set;

    invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 3
    sget-object v1, Les/e40;->a:Ljava/util/Set;

    invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p0

    invoke-interface {v1, p0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 4
    sget-object p0, Les/e40;->a:Ljava/util/Set;

    invoke-interface {p0}, Ljava/util/Set;->size()I

    move-result p0

    if-nez p0, :cond_0

    const/4 p0, 0x1

    const/4 v2, 0x1

    .line 5
    :cond_0
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v2, :cond_1

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p0

    if-eqz p0, :cond_1

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->E0()V

    :cond_1
    return-void

    :catchall_0
    move-exception p0

    .line 8
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p0
.end method
